//
//  YLUserInfo.h
//  BaseProject
//
//  Created by YLCai on 16/11/30.
//  Copyright © 2016年 YLCai. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YLUserInfo : NSObject<NSCoding>

@property(nonatomic,strong)NSNumber *userId;
@property(nonatomic,copy)NSString *phone;//shoujihao
@property(nonatomic,copy)NSString *avatar;
@property(nonatomic,copy)NSString *fansNum;
@property(nonatomic,copy)NSString *token;
@property(nonatomic,copy)NSString *nickname;
@property(nonatomic,copy)NSString *attentionNum;
@property(nonatomic,copy)NSString *yldescription;

@property(nonatomic,copy)NSString *name;//真实姓名
@property(nonatomic,copy)NSString *birthday;//生日
@property(nonatomic,strong)NSNumber *gender;//性别 1男 2女
@property(nonatomic,strong)NSNumber *province;//省id
@property(nonatomic,copy)NSString *provinceName;//省名
@property(nonatomic,strong)NSNumber *city;//市id
@property(nonatomic,copy)NSString *cityName;//市名
@property(nonatomic,strong)NSNumber *district;//地区
@property(nonatomic,copy)NSString *address;//详细地址
@property(nonatomic,copy)NSString *industryId;//行业id
@property(nonatomic,strong)NSNumber *investmentBudget;//投资预算 0=>全部 10=>3万以下 15=>3-8万 5=>5-10万 6=>10-20万 11=>20万以上
@property(nonatomic,copy)NSString *operationMode;//运营方式
@property(nonatomic,strong)NSNumber *itemid;//关联项目id
@property(nonatomic,copy)NSString *createdAt;//创建时间
@property(nonatomic,copy)NSString *updateAt;//更新时间
@property(nonatomic,strong)NSNumber *stage;//创业时期id
@property(nonatomic,copy)NSString *stageName;//创业时期
@property(nonatomic,strong)NSNumber *background;//背景图
@property(nonatomic,strong)NSArray *industry;//行业列表


/*  通过初始化userIfo并保存在本地(单利模式)   */
+(instancetype)getuserInfoWithDic:(NSDictionary *)dic;

/*  获取用户已登陆的信息 */
+(instancetype)shareUserInfo;

/*  判断用户时否登陆 */
+(BOOL)isLogIn;

/*  退出登陆 */
+(instancetype)logout;

/*  保存当前userInfo */
+(void)saveUser:(YLUserInfo *)userInfo;

@end
